From eabcefca9aa3a123d6d4ce51825dc3276c53bb2c Mon Sep 17 00:00:00 2001 From: LLVM Packaging Team Date: Tue, 16 Dec 2025 12:47:30 +0100 Subject: [PATCH] bolt-disable-proc-check bolt: Disable the check for /proc/self/map_files. Might not be available on build machines Gbp-Pq: Name bolt-disable-proc-check.diff --- bolt/CMakeLists.txt | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/bolt/CMakeLists.txt b/bolt/CMakeLists.txt index 5c7d51e1e3..0dab0a2d28 100644 --- a/bolt/CMakeLists.txt +++ b/bolt/CMakeLists.txt @@ -94,16 +94,6 @@ if ((CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" set(BOLT_ENABLE_RUNTIME_default ON) endif() option(BOLT_ENABLE_RUNTIME "Enable BOLT runtime" ${BOLT_ENABLE_RUNTIME_default}) -if (BOLT_ENABLE_RUNTIME) - # Some systems prevent reading /proc/self/map_files - execute_process(COMMAND ls /proc/self/map_files - RESULT_VARIABLE LS OUTPUT_QUIET ERROR_QUIET) - if (LS) - message(WARNING - "BOLT runtime may not be able to read /proc/self/map_files. Please use - `--instrumentation-binpath ` option.") - endif() -endif() set(BOLT_CLANG_EXE "" CACHE FILEPATH "Path to clang executable for the target \ architecture for use in BOLT tests") -- 2.30.2